package com.innoking.docsys.workflow.example;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

/**
 * @Author: zyp
 * @Description:工作流定义扩展类
 * @Date: Created in 17:09 2018/4/18
 */
public class UpmsActDefineClusterExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UpmsActDefineClusterExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andAdIdIsNull() {
            addCriterion("AD_ID is null");
            return (Criteria) this;
        }

        public Criteria andAdIdIsNotNull() {
            addCriterion("AD_ID is not null");
            return (Criteria) this;
        }

        public Criteria andAdIdEqualTo(Long value) {
            addCriterion("AD_ID =", value, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdNotEqualTo(Long value) {
            addCriterion("AD_ID <>", value, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdGreaterThan(Long value) {
            addCriterion("AD_ID >", value, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdGreaterThanOrEqualTo(Long value) {
            addCriterion("AD_ID >=", value, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdLessThan(Long value) {
            addCriterion("AD_ID <", value, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdLessThanOrEqualTo(Long value) {
            addCriterion("AD_ID <=", value, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdIn(List<Long> values) {
            addCriterion("AD_ID in", values, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdNotIn(List<Long> values) {
            addCriterion("AD_ID not in", values, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdBetween(Long value1, Long value2) {
            addCriterion("AD_ID between", value1, value2, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdNotBetween(Long value1, Long value2) {
            addCriterion("AD_ID not between", value1, value2, "adId");
            return (Criteria) this;
        }

        public Criteria andAdCodeIsNull() {
            addCriterion("AD_CODE is null");
            return (Criteria) this;
        }

        public Criteria andAdCodeIsNotNull() {
            addCriterion("AD_CODE is not null");
            return (Criteria) this;
        }

        public Criteria andAdCodeEqualTo(String value) {
            addCriterion("AD_CODE =", value, "adCode");
            return (Criteria) this;
        }

        public Criteria andAdCodeNotEqualTo(String value) {
            addCriterion("AD_CODE <>", value, "adCode");
            return (Criteria) this;
        }

        public Criteria andAdCodeGreaterThan(String value) {
            addCriterion("AD_CODE >", value, "adCode");
            return (Criteria) this;
        }

        public Criteria andAdCodeGreaterThanOrEqualTo(String value) {
            addCriterion("AD_CODE >=", value, "adCode");
            return (Criteria) this;
        }

        public Criteria andAdCodeLessThan(String value) {
            addCriterion("AD_CODE <", value, "adCode");
            return (Criteria) this;
        }

        public Criteria andAdCodeLessThanOrEqualTo(String value) {
            addCriterion("AD_CODE <=", value, "adCode");
            return (Criteria) this;
        }

        public Criteria andAdCodeLike(String value) {
            addCriterion("AD_CODE like", value, "adCode");
            return (Criteria) this;
        }

        public Criteria andAdCodeNotLike(String value) {
            addCriterion("AD_CODE not like", value, "adCode");
            return (Criteria) this;
        }

        public Criteria andAdCodeIn(List<String> values) {
            addCriterion("AD_CODE in", values, "adCode");
            return (Criteria) this;
        }

        public Criteria andAdCodeNotIn(List<String> values) {
            addCriterion("AD_CODE not in", values, "adCode");
            return (Criteria) this;
        }

        public Criteria andAdCodeBetween(String value1, String value2) {
            addCriterion("AD_CODE between", value1, value2, "adCode");
            return (Criteria) this;
        }

        public Criteria andAdCodeNotBetween(String value1, String value2) {
            addCriterion("AD_CODE not between", value1, value2, "adCode");
            return (Criteria) this;
        }

        public Criteria andAdNameIsNull() {
            addCriterion("AD_NAME is null");
            return (Criteria) this;
        }

        public Criteria andAdNameIsNotNull() {
            addCriterion("AD_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andAdNameEqualTo(String value) {
            addCriterion("AD_NAME =", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameNotEqualTo(String value) {
            addCriterion("AD_NAME <>", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameGreaterThan(String value) {
            addCriterion("AD_NAME >", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameGreaterThanOrEqualTo(String value) {
            addCriterion("AD_NAME >=", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameLessThan(String value) {
            addCriterion("AD_NAME <", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameLessThanOrEqualTo(String value) {
            addCriterion("AD_NAME <=", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameLike(String value) {
            addCriterion("AD_NAME like", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameNotLike(String value) {
            addCriterion("AD_NAME not like", value, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameIn(List<String> values) {
            addCriterion("AD_NAME in", values, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameNotIn(List<String> values) {
            addCriterion("AD_NAME not in", values, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameBetween(String value1, String value2) {
            addCriterion("AD_NAME between", value1, value2, "adName");
            return (Criteria) this;
        }

        public Criteria andAdNameNotBetween(String value1, String value2) {
            addCriterion("AD_NAME not between", value1, value2, "adName");
            return (Criteria) this;
        }

        public Criteria andAdKeyIsNull() {
            addCriterion("AD_KEY is null");
            return (Criteria) this;
        }

        public Criteria andAdKeyIsNotNull() {
            addCriterion("AD_KEY is not null");
            return (Criteria) this;
        }

        public Criteria andAdKeyEqualTo(String value) {
            addCriterion("AD_KEY =", value, "adKey");
            return (Criteria) this;
        }

        public Criteria andAdKeyNotEqualTo(String value) {
            addCriterion("AD_KEY <>", value, "adKey");
            return (Criteria) this;
        }

        public Criteria andAdKeyGreaterThan(String value) {
            addCriterion("AD_KEY >", value, "adKey");
            return (Criteria) this;
        }

        public Criteria andAdKeyGreaterThanOrEqualTo(String value) {
            addCriterion("AD_KEY >=", value, "adKey");
            return (Criteria) this;
        }

        public Criteria andAdKeyLessThan(String value) {
            addCriterion("AD_KEY <", value, "adKey");
            return (Criteria) this;
        }

        public Criteria andAdKeyLessThanOrEqualTo(String value) {
            addCriterion("AD_KEY <=", value, "adKey");
            return (Criteria) this;
        }

        public Criteria andAdKeyLike(String value) {
            addCriterion("AD_KEY like", value, "adKey");
            return (Criteria) this;
        }

        public Criteria andAdKeyNotLike(String value) {
            addCriterion("AD_KEY not like", value, "adKey");
            return (Criteria) this;
        }

        public Criteria andAdKeyIn(List<String> values) {
            addCriterion("AD_KEY in", values, "adKey");
            return (Criteria) this;
        }

        public Criteria andAdKeyNotIn(List<String> values) {
            addCriterion("AD_KEY not in", values, "adKey");
            return (Criteria) this;
        }

        public Criteria andAdKeyBetween(String value1, String value2) {
            addCriterion("AD_KEY between", value1, value2, "adKey");
            return (Criteria) this;
        }

        public Criteria andAdKeyNotBetween(String value1, String value2) {
            addCriterion("AD_KEY not between", value1, value2, "adKey");
            return (Criteria) this;
        }

        public Criteria andAdDescriptionIsNull() {
            addCriterion("AD_DESCRIPTION is null");
            return (Criteria) this;
        }

        public Criteria andAdDescriptionIsNotNull() {
            addCriterion("AD_DESCRIPTION is not null");
            return (Criteria) this;
        }

        public Criteria andAdDescriptionEqualTo(String value) {
            addCriterion("AD_DESCRIPTION =", value, "adDescription");
            return (Criteria) this;
        }

        public Criteria andAdDescriptionNotEqualTo(String value) {
            addCriterion("AD_DESCRIPTION <>", value, "adDescription");
            return (Criteria) this;
        }

        public Criteria andAdDescriptionGreaterThan(String value) {
            addCriterion("AD_DESCRIPTION >", value, "adDescription");
            return (Criteria) this;
        }

        public Criteria andAdDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("AD_DESCRIPTION >=", value, "adDescription");
            return (Criteria) this;
        }

        public Criteria andAdDescriptionLessThan(String value) {
            addCriterion("AD_DESCRIPTION <", value, "adDescription");
            return (Criteria) this;
        }

        public Criteria andAdDescriptionLessThanOrEqualTo(String value) {
            addCriterion("AD_DESCRIPTION <=", value, "adDescription");
            return (Criteria) this;
        }

        public Criteria andAdDescriptionLike(String value) {
            addCriterion("AD_DESCRIPTION like", value, "adDescription");
            return (Criteria) this;
        }

        public Criteria andAdDescriptionNotLike(String value) {
            addCriterion("AD_DESCRIPTION not like", value, "adDescription");
            return (Criteria) this;
        }

        public Criteria andAdDescriptionIn(List<String> values) {
            addCriterion("AD_DESCRIPTION in", values, "adDescription");
            return (Criteria) this;
        }

        public Criteria andAdDescriptionNotIn(List<String> values) {
            addCriterion("AD_DESCRIPTION not in", values, "adDescription");
            return (Criteria) this;
        }

        public Criteria andAdDescriptionBetween(String value1, String value2) {
            addCriterion("AD_DESCRIPTION between", value1, value2, "adDescription");
            return (Criteria) this;
        }

        public Criteria andAdDescriptionNotBetween(String value1, String value2) {
            addCriterion("AD_DESCRIPTION not between", value1, value2, "adDescription");
            return (Criteria) this;
        }

        public Criteria andAdExtendOneIsNull() {
            addCriterion("AD_EXTEND_ONE is null");
            return (Criteria) this;
        }

        public Criteria andAdExtendOneIsNotNull() {
            addCriterion("AD_EXTEND_ONE is not null");
            return (Criteria) this;
        }

        public Criteria andAdExtendOneEqualTo(String value) {
            addCriterion("AD_EXTEND_ONE =", value, "adExtendOne");
            return (Criteria) this;
        }

        public Criteria andAdExtendOneNotEqualTo(String value) {
            addCriterion("AD_EXTEND_ONE <>", value, "adExtendOne");
            return (Criteria) this;
        }

        public Criteria andAdExtendOneGreaterThan(String value) {
            addCriterion("AD_EXTEND_ONE >", value, "adExtendOne");
            return (Criteria) this;
        }

        public Criteria andAdExtendOneGreaterThanOrEqualTo(String value) {
            addCriterion("AD_EXTEND_ONE >=", value, "adExtendOne");
            return (Criteria) this;
        }

        public Criteria andAdExtendOneLessThan(String value) {
            addCriterion("AD_EXTEND_ONE <", value, "adExtendOne");
            return (Criteria) this;
        }

        public Criteria andAdExtendOneLessThanOrEqualTo(String value) {
            addCriterion("AD_EXTEND_ONE <=", value, "adExtendOne");
            return (Criteria) this;
        }

        public Criteria andAdExtendOneLike(String value) {
            addCriterion("AD_EXTEND_ONE like", value, "adExtendOne");
            return (Criteria) this;
        }

        public Criteria andAdExtendOneNotLike(String value) {
            addCriterion("AD_EXTEND_ONE not like", value, "adExtendOne");
            return (Criteria) this;
        }

        public Criteria andAdExtendOneIn(List<String> values) {
            addCriterion("AD_EXTEND_ONE in", values, "adExtendOne");
            return (Criteria) this;
        }

        public Criteria andAdExtendOneNotIn(List<String> values) {
            addCriterion("AD_EXTEND_ONE not in", values, "adExtendOne");
            return (Criteria) this;
        }

        public Criteria andAdExtendOneBetween(String value1, String value2) {
            addCriterion("AD_EXTEND_ONE between", value1, value2, "adExtendOne");
            return (Criteria) this;
        }

        public Criteria andAdExtendOneNotBetween(String value1, String value2) {
            addCriterion("AD_EXTEND_ONE not between", value1, value2, "adExtendOne");
            return (Criteria) this;
        }

        public Criteria andAdExtendTwoIsNull() {
            addCriterion("AD_EXTEND_TWO is null");
            return (Criteria) this;
        }

        public Criteria andAdExtendTwoIsNotNull() {
            addCriterion("AD_EXTEND_TWO is not null");
            return (Criteria) this;
        }

        public Criteria andAdExtendTwoEqualTo(String value) {
            addCriterion("AD_EXTEND_TWO =", value, "adExtendTwo");
            return (Criteria) this;
        }

        public Criteria andAdExtendTwoNotEqualTo(String value) {
            addCriterion("AD_EXTEND_TWO <>", value, "adExtendTwo");
            return (Criteria) this;
        }

        public Criteria andAdExtendTwoGreaterThan(String value) {
            addCriterion("AD_EXTEND_TWO >", value, "adExtendTwo");
            return (Criteria) this;
        }

        public Criteria andAdExtendTwoGreaterThanOrEqualTo(String value) {
            addCriterion("AD_EXTEND_TWO >=", value, "adExtendTwo");
            return (Criteria) this;
        }

        public Criteria andAdExtendTwoLessThan(String value) {
            addCriterion("AD_EXTEND_TWO <", value, "adExtendTwo");
            return (Criteria) this;
        }

        public Criteria andAdExtendTwoLessThanOrEqualTo(String value) {
            addCriterion("AD_EXTEND_TWO <=", value, "adExtendTwo");
            return (Criteria) this;
        }

        public Criteria andAdExtendTwoLike(String value) {
            addCriterion("AD_EXTEND_TWO like", value, "adExtendTwo");
            return (Criteria) this;
        }

        public Criteria andAdExtendTwoNotLike(String value) {
            addCriterion("AD_EXTEND_TWO not like", value, "adExtendTwo");
            return (Criteria) this;
        }

        public Criteria andAdExtendTwoIn(List<String> values) {
            addCriterion("AD_EXTEND_TWO in", values, "adExtendTwo");
            return (Criteria) this;
        }

        public Criteria andAdExtendTwoNotIn(List<String> values) {
            addCriterion("AD_EXTEND_TWO not in", values, "adExtendTwo");
            return (Criteria) this;
        }

        public Criteria andAdExtendTwoBetween(String value1, String value2) {
            addCriterion("AD_EXTEND_TWO between", value1, value2, "adExtendTwo");
            return (Criteria) this;
        }

        public Criteria andAdExtendTwoNotBetween(String value1, String value2) {
            addCriterion("AD_EXTEND_TWO not between", value1, value2, "adExtendTwo");
            return (Criteria) this;
        }

        public Criteria andAdExtendThreeIsNull() {
            addCriterion("AD_EXTEND_THREE is null");
            return (Criteria) this;
        }

        public Criteria andAdExtendThreeIsNotNull() {
            addCriterion("AD_EXTEND_THREE is not null");
            return (Criteria) this;
        }

        public Criteria andAdExtendThreeEqualTo(String value) {
            addCriterion("AD_EXTEND_THREE =", value, "adExtendThree");
            return (Criteria) this;
        }

        public Criteria andAdExtendThreeNotEqualTo(String value) {
            addCriterion("AD_EXTEND_THREE <>", value, "adExtendThree");
            return (Criteria) this;
        }

        public Criteria andAdExtendThreeGreaterThan(String value) {
            addCriterion("AD_EXTEND_THREE >", value, "adExtendThree");
            return (Criteria) this;
        }

        public Criteria andAdExtendThreeGreaterThanOrEqualTo(String value) {
            addCriterion("AD_EXTEND_THREE >=", value, "adExtendThree");
            return (Criteria) this;
        }

        public Criteria andAdExtendThreeLessThan(String value) {
            addCriterion("AD_EXTEND_THREE <", value, "adExtendThree");
            return (Criteria) this;
        }

        public Criteria andAdExtendThreeLessThanOrEqualTo(String value) {
            addCriterion("AD_EXTEND_THREE <=", value, "adExtendThree");
            return (Criteria) this;
        }

        public Criteria andAdExtendThreeLike(String value) {
            addCriterion("AD_EXTEND_THREE like", value, "adExtendThree");
            return (Criteria) this;
        }

        public Criteria andAdExtendThreeNotLike(String value) {
            addCriterion("AD_EXTEND_THREE not like", value, "adExtendThree");
            return (Criteria) this;
        }

        public Criteria andAdExtendThreeIn(List<String> values) {
            addCriterion("AD_EXTEND_THREE in", values, "adExtendThree");
            return (Criteria) this;
        }

        public Criteria andAdExtendThreeNotIn(List<String> values) {
            addCriterion("AD_EXTEND_THREE not in", values, "adExtendThree");
            return (Criteria) this;
        }

        public Criteria andAdExtendThreeBetween(String value1, String value2) {
            addCriterion("AD_EXTEND_THREE between", value1, value2, "adExtendThree");
            return (Criteria) this;
        }

        public Criteria andAdExtendThreeNotBetween(String value1, String value2) {
            addCriterion("AD_EXTEND_THREE not between", value1, value2, "adExtendThree");
            return (Criteria) this;
        }

        public Criteria andAdExtendFourIsNull() {
            addCriterion("AD_EXTEND_FOUR is null");
            return (Criteria) this;
        }

        public Criteria andAdExtendFourIsNotNull() {
            addCriterion("AD_EXTEND_FOUR is not null");
            return (Criteria) this;
        }

        public Criteria andAdExtendFourEqualTo(String value) {
            addCriterion("AD_EXTEND_FOUR =", value, "adExtendFour");
            return (Criteria) this;
        }

        public Criteria andAdExtendFourNotEqualTo(String value) {
            addCriterion("AD_EXTEND_FOUR <>", value, "adExtendFour");
            return (Criteria) this;
        }

        public Criteria andAdExtendFourGreaterThan(String value) {
            addCriterion("AD_EXTEND_FOUR >", value, "adExtendFour");
            return (Criteria) this;
        }

        public Criteria andAdExtendFourGreaterThanOrEqualTo(String value) {
            addCriterion("AD_EXTEND_FOUR >=", value, "adExtendFour");
            return (Criteria) this;
        }

        public Criteria andAdExtendFourLessThan(String value) {
            addCriterion("AD_EXTEND_FOUR <", value, "adExtendFour");
            return (Criteria) this;
        }

        public Criteria andAdExtendFourLessThanOrEqualTo(String value) {
            addCriterion("AD_EXTEND_FOUR <=", value, "adExtendFour");
            return (Criteria) this;
        }

        public Criteria andAdExtendFourLike(String value) {
            addCriterion("AD_EXTEND_FOUR like", value, "adExtendFour");
            return (Criteria) this;
        }

        public Criteria andAdExtendFourNotLike(String value) {
            addCriterion("AD_EXTEND_FOUR not like", value, "adExtendFour");
            return (Criteria) this;
        }

        public Criteria andAdExtendFourIn(List<String> values) {
            addCriterion("AD_EXTEND_FOUR in", values, "adExtendFour");
            return (Criteria) this;
        }

        public Criteria andAdExtendFourNotIn(List<String> values) {
            addCriterion("AD_EXTEND_FOUR not in", values, "adExtendFour");
            return (Criteria) this;
        }

        public Criteria andAdExtendFourBetween(String value1, String value2) {
            addCriterion("AD_EXTEND_FOUR between", value1, value2, "adExtendFour");
            return (Criteria) this;
        }

        public Criteria andAdExtendFourNotBetween(String value1, String value2) {
            addCriterion("AD_EXTEND_FOUR not between", value1, value2, "adExtendFour");
            return (Criteria) this;
        }

        public Criteria andAdExtendFiveIsNull() {
            addCriterion("AD_EXTEND_FIVE is null");
            return (Criteria) this;
        }

        public Criteria andAdExtendFiveIsNotNull() {
            addCriterion("AD_EXTEND_FIVE is not null");
            return (Criteria) this;
        }

        public Criteria andAdExtendFiveEqualTo(String value) {
            addCriterion("AD_EXTEND_FIVE =", value, "adExtendFive");
            return (Criteria) this;
        }

        public Criteria andAdExtendFiveNotEqualTo(String value) {
            addCriterion("AD_EXTEND_FIVE <>", value, "adExtendFive");
            return (Criteria) this;
        }

        public Criteria andAdExtendFiveGreaterThan(String value) {
            addCriterion("AD_EXTEND_FIVE >", value, "adExtendFive");
            return (Criteria) this;
        }

        public Criteria andAdExtendFiveGreaterThanOrEqualTo(String value) {
            addCriterion("AD_EXTEND_FIVE >=", value, "adExtendFive");
            return (Criteria) this;
        }

        public Criteria andAdExtendFiveLessThan(String value) {
            addCriterion("AD_EXTEND_FIVE <", value, "adExtendFive");
            return (Criteria) this;
        }

        public Criteria andAdExtendFiveLessThanOrEqualTo(String value) {
            addCriterion("AD_EXTEND_FIVE <=", value, "adExtendFive");
            return (Criteria) this;
        }

        public Criteria andAdExtendFiveLike(String value) {
            addCriterion("AD_EXTEND_FIVE like", value, "adExtendFive");
            return (Criteria) this;
        }

        public Criteria andAdExtendFiveNotLike(String value) {
            addCriterion("AD_EXTEND_FIVE not like", value, "adExtendFive");
            return (Criteria) this;
        }

        public Criteria andAdExtendFiveIn(List<String> values) {
            addCriterion("AD_EXTEND_FIVE in", values, "adExtendFive");
            return (Criteria) this;
        }

        public Criteria andAdExtendFiveNotIn(List<String> values) {
            addCriterion("AD_EXTEND_FIVE not in", values, "adExtendFive");
            return (Criteria) this;
        }

        public Criteria andAdExtendFiveBetween(String value1, String value2) {
            addCriterion("AD_EXTEND_FIVE between", value1, value2, "adExtendFive");
            return (Criteria) this;
        }

        public Criteria andAdExtendFiveNotBetween(String value1, String value2) {
            addCriterion("AD_EXTEND_FIVE not between", value1, value2, "adExtendFive");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CREATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CREATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_TIME =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_TIME <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("CREATE_TIME >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_TIME >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterionForJDBCDate("CREATE_TIME <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("CREATE_TIME <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterionForJDBCDate("CREATE_TIME in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("CREATE_TIME not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("CREATE_TIME between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("CREATE_TIME not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("UPDATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("UPDATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterionForJDBCDate("UPDATE_TIME =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("UPDATE_TIME <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("UPDATE_TIME >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("UPDATE_TIME >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterionForJDBCDate("UPDATE_TIME <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("UPDATE_TIME <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterionForJDBCDate("UPDATE_TIME in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("UPDATE_TIME not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("UPDATE_TIME between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("UPDATE_TIME not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andAdStatusIsNull() {
            addCriterion("AD_STATUS is null");
            return (Criteria) this;
        }

        public Criteria andAdStatusIsNotNull() {
            addCriterion("AD_STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andAdStatusEqualTo(Long value) {
            addCriterion("AD_STATUS =", value, "adStatus");
            return (Criteria) this;
        }

        public Criteria andAdStatusNotEqualTo(Long value) {
            addCriterion("AD_STATUS <>", value, "adStatus");
            return (Criteria) this;
        }

        public Criteria andAdStatusGreaterThan(Long value) {
            addCriterion("AD_STATUS >", value, "adStatus");
            return (Criteria) this;
        }

        public Criteria andAdStatusGreaterThanOrEqualTo(Long value) {
            addCriterion("AD_STATUS >=", value, "adStatus");
            return (Criteria) this;
        }

        public Criteria andAdStatusLessThan(Long value) {
            addCriterion("AD_STATUS <", value, "adStatus");
            return (Criteria) this;
        }

        public Criteria andAdStatusLessThanOrEqualTo(Long value) {
            addCriterion("AD_STATUS <=", value, "adStatus");
            return (Criteria) this;
        }

        public Criteria andAdStatusIn(List<Long> values) {
            addCriterion("AD_STATUS in", values, "adStatus");
            return (Criteria) this;
        }

        public Criteria andAdStatusNotIn(List<Long> values) {
            addCriterion("AD_STATUS not in", values, "adStatus");
            return (Criteria) this;
        }

        public Criteria andAdStatusBetween(Long value1, Long value2) {
            addCriterion("AD_STATUS between", value1, value2, "adStatus");
            return (Criteria) this;
        }

        public Criteria andAdStatusNotBetween(Long value1, Long value2) {
            addCriterion("AD_STATUS not between", value1, value2, "adStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}